package com.hsmw.api.service;


import com.hsmw.api.mapper.HsmwRunSprintRecordMapper;
import com.hsmw.common.base.BaseService;
import com.hsmw.domain.HsmwRunSprintRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HsmwRunSprintRecordService extends BaseService<HsmwRunSprintRecordMapper, HsmwRunSprintRecord> {


    @Autowired
    private HsmwRunSprintRecordMapper hsmwRunSprintRecordMapper;

    public Long findDriverRunSoringCount(String id, String month) {

        return hsmwRunSprintRecordMapper.findDriverRunSoringCount(id,month);
    }
}
